package com.yuanfeng.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.goods.dto.GoodsBrandDTO;
import com.yuanfeng.goods.entity.GoodsBrandCatEntity;
import com.yuanfeng.goods.entity.GoodsBrandEntity;
import com.yuanfeng.goods.vo.GoodsBrandCatParamVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName GoodsBrandCatMapper
 * @Description  商品品牌分类表
 * @Author cyp
 * @Date 2023-06-26 13:50:10
 * @Version 1.0
 **/
@Mapper
public interface GoodsBrandCatMapper extends BaseMapper<GoodsBrandCatEntity> {

    /**
     * 查询品牌分类关联信息
     * @param objectMap
     * @return
     */
    List<GoodsBrandCatParamVO> selectBrandCatList(@Param("param") Map<String, Object> objectMap);

    /**
     * 修改品牌分类关联信息
     * @param param
     */
    void updateBatchBrandCat(@Param("param") GoodsBrandDTO param);

    /***
     * 删除分类与品牌绑定信息
     * @param deleteBrandId
     */
    void deleteBrandIds(@Param("deleteBrandId")List<Integer> deleteBrandId);

    /**
     * 添加分类与品牌绑定信息
     * @param brands
     */
    void insertBrandCat(GoodsBrandEntity brands);
}
